package com.top10.utils;

import org.apache.log4j.Logger;

/**
 * Created by xyd 2018-05-09
 */
public class MyLog {

    /**
     * 交易日志
     */
    public static class TradeLog {

        public final static Logger log = Logger.getLogger(MyLog.TradeLog.class);

        public static void logBuy(String message) {
            log.info(message);
        }
        public static void buyInfo(String message) { log.info(message);}
        public static void errorBuy(String message) {
            log.error(message);
        }
    }

    /**
     * 退款日志
     */
    public static class RefoundLog {

        public final static Logger log = Logger.getLogger(MyLog.RefoundLog.class);

        public static void logRefound(String message) {
            log.info(message);
        }
        public static void errorRefound(String message) {
            log.error(message);
        }
    }

    /**
     * 异常日志
     */
    public static class AllException{
        public final static Logger log = Logger.getLogger(MyLog.AllException.class);

        public static void log(String message) {
            log.info(message);
        }
    }



    public static void main(String[] args){
        String i="1.2";
        double j=Double.valueOf(i);
        System.out.println(j);
    }


}